package com.jjyu.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.jjyu.dao.FeedbackMapper;
import com.jjyu.entity.Feedback;
import com.jjyu.service.FeedBackService;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class FeedBackServiceImpl extends ServiceImpl<FeedbackMapper, Feedback> implements FeedBackService {

    @Override
    public List<Feedback> getFeedBackByUserId(Integer userId) {
        QueryWrapper<Feedback> queryWrapper = new QueryWrapper<>();
        queryWrapper.eq("userId", userId);
        return list(queryWrapper);
    }
}
